/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Ex5_banking;

import Ex5_banking.Customer;

/**
 *
 * @author JV-SL1001
 */
public class Banking {

    private Customer[] customer=new Customer[6];
    private int numberOCustomer;

    public Customer[] getCustomer() {
        return customer;
    }

    public void setCustomer(Customer[] customer) {
        this.customer = customer;
    }

    public int getNumberOCustomer() {
        return numberOCustomer;
    }

    public void setNumberOCustomer(int numberOCustomer) {
        this.numberOCustomer = numberOCustomer;
    }


    public void addCustomer(String f, String l) {
        Customer cu = new Customer(f, l);
        customer[i]=cu;

    }

    public int getNumberOfCustomer() {
        return customer.length;
    }

    public Customer getCustomer(int index) {
        return customer[index];
    }
    public static void main(String[] args) {
        Banking b=new Banking();
        b.customer[1]=b.addCustomer(Sims, jane);
        b.addCustomer("Bryant", "owen");
        b.addCustomer("Soley", "Tim");
        b.addCustomer("Soley", "Maria");
        for (int i = 0; i < b.customer.length; i++) {
            System.out.println("Customer ["+i+"] is :"+b.customer[i].getFirstName()+" , "+b.customer[i].getLastName());

        }

    }
}
